package com.hdoit.kylin.logical.experiment.service.impl;
import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;

import com.tennetcn.common.dao.base.impl.SuperService;
import com.tennetcn.common.message.PagerModel;
import com.hdoit.kylin.logical.experiment.dao.IExperimentDao;
import com.hdoit.kylin.logical.experiment.model.Experiment;
import com.hdoit.kylin.logical.experiment.service.IExperimentService;
import com.hdoit.kylin.logical.viewmodel.studentManager.ExperimentSearch;
/**
* @author luozhicheng
* @email
* @createtime 2017年07月18日 20:16:49
* @comment
*/
@Component
public class ExperimentServiceImpl extends SuperService<Experiment> implements IExperimentService{
	private IExperimentDao experimentDao;

	public IExperimentDao getExperimentDao() {
		return experimentDao;
	}
	@Resource
	public void setExperimentDao(IExperimentDao experimentDao) {
		this.experimentDao = experimentDao;
	}
	
	public int queryCount(ExperimentSearch search) {
		return experimentDao.queryCount(search);
	}
	
	@Override
	public List<Experiment> queryList(ExperimentSearch search,PagerModel pagerModel){
		return experimentDao.queryList(search,pagerModel);	
	}
	
	@Override
	public List<Experiment> queryListByProjectId(String projectId){
		return experimentDao.queryListByProjectId(projectId);
	}
	@Override
	public List<Experiment> queryListByEmployeeIds(List<String> employeeIds) {
		return experimentDao.queryListByEmployeeIds(employeeIds);
	}
}